<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>伪类和伪元素</title>
    <style>
        * {
            background: lightskyblue;
            color: gold;
            font-weight: bold;
            font-size: 50px;
            margin-left: 50px;
        }

        p::before {
            content: "零";
        }

        p::first-letter {
            color: white;
        }

        p::after {
            content: "五";
        }

        li:nth-child(2n+1) {
            color: mediumpurple;

        }

    </style>
</head>
<body>
<p>一二三四</p>


<ol>
    <li>第一个</li>
    <li>第二个</li>
    <li>第三个</li>
    <li>第四个</li>
    <li>第五个</li>
    <li>第六个</li>
</ol>
</body>
</html>